<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function pFn1() {
        return new Promise((resolve, reject) => {
          setTimeout(() => {
            resolve("pFn1执行了");
          }, 200);
        });
      }
      async function runPFn1() {
        await pFn1();
        console.log("我要在pFn1后面执行");
      }
      function pFn2() {
        return new Promise((resolve, reject) => {
          setTimeout(() => {
            resolve("pFn2执行了");
          }, 200);
        });
      }
      async function runPFn2() {
        await pFn1();
        console.log("我要在pFn1后面执行");
      }
      function runAll() {
        runPFn1();
        runPFn2();
        console.log("pfn1 和 pfn2 回影响到我的执行吗");
      }
      runAll();
    </script>
  </body>
</html>
